package com.zhilehuo.pretask.poko
/**
 * @Description: 网络请求结构
 * @Author: Realnt
 * @Date:
 */
data class ApiResponse<T>(
    val code: Int,
    val msg: String,
    val data: T
)

/**
 * @Description: 文章详情细节响应体
 * @Author: Realnt
 * @Date:
 */
data class ArticleDetailResponse(
    val code: Int,
    val msg: String,
    val data: ArticleDetail
)

/**
 * @Description: 文章详情
 * @Author: Realnt
 * @Date:
 */
data class ArticleDetail(
    val contentList: List<PageContent>
)

/**
 * @Description: 文章详情内容
 * @Author: Realnt
 * @Date:
 */
data class PageContent(
    val pageNum: Int,
    val imgUrl: String,
    val audioUrl: String,
    val sentenceByXFList: List<WordTiming>
)

/**
 * @Description: 词分割结构
 * @Author: Realnt
 * @Date:
 */
data class WordTiming(
    val word: String,
    val wb: Int, // 起始时间
    val we: Int  // 结束时间
)